import java.util.ArrayList;

public class Factors {

    public ArrayList generate(int value){
        ArrayList factors = new ArrayList();
        int number = 1;
        while(number <= value){
          if(value % number == 0){
              factors.add(number);
          }
          number++;
        }
        return  factors;
    }
}
